<?php

/**
 * The Dummy adaptor for prepared statements.
 * @package Nina
 * @author John Main <john@thedaddy.org>, Chris Corbyn
 */
class Nina_Db_Driver_Statement_Dummy extends Nina_Db_Driver_Statement
{
	/**
	 * Set the SQL being executed.
	 * @param string $sql
	 */
	public function setSql($sql) {
		return true;
	}

	/**
	 * Get the SQL being executed.
	 * @return string
	 */
	public function getSql() {
		return true;
	}

	/**
	 * Bind a value to the prepared statement.
	 * @param array $vars Variables to bind.
	 */
	public function bind(array $vars) {
		return true;
	}

	/**
	 * Execute the statement and get the result.
	 * @return Nina_Db_Adaptor_Result
	 */
	public function execute() {
		return new Nina_Adaptor_Result_Dummy();
	}
}
